package designpattern;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/20 22:11
 */
public class SimgleResponsibility {
    public static void main(String[] args) {

    }
}

/**
 * 单一职责原则
 */
class Vehicle {
    public void run(String vehicle) {
        System.out.println(vehicle + " 在公路上跑");
    }
}
